﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010C5 RID: 4293
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneEntityMoveScRsp : IMessage<SceneEntityMoveScRsp>, IMessage, IEquatable<SceneEntityMoveScRsp>, IDeepCloneable<SceneEntityMoveScRsp>, IBufferMessage
	{
		// Token: 0x17003646 RID: 13894
		// (get) Token: 0x0600BFEB RID: 49131 RVA: 0x002068A7 File Offset: 0x00204AA7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneEntityMoveScRsp> Parser
		{
			get
			{
				return SceneEntityMoveScRsp._parser;
			}
		}

		// Token: 0x17003647 RID: 13895
		// (get) Token: 0x0600BFEC RID: 49132 RVA: 0x002068AE File Offset: 0x00204AAE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneEntityMoveScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003648 RID: 13896
		// (get) Token: 0x0600BFED RID: 49133 RVA: 0x002068C0 File Offset: 0x00204AC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneEntityMoveScRsp.Descriptor;
			}
		}

		// Token: 0x0600BFEE RID: 49134 RVA: 0x002068C7 File Offset: 0x00204AC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEntityMoveScRsp()
		{
		}

		// Token: 0x0600BFEF RID: 49135 RVA: 0x002068DC File Offset: 0x00204ADC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEntityMoveScRsp(SceneEntityMoveScRsp other) : this()
		{
			this.entityMotionList_ = other.entityMotionList_.Clone();
			this.retcode_ = other.retcode_;
			this.downloadData_ = ((other.downloadData_ != null) ? other.downloadData_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BFF0 RID: 49136 RVA: 0x00206939 File Offset: 0x00204B39
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEntityMoveScRsp Clone()
		{
			return new SceneEntityMoveScRsp(this);
		}

		// Token: 0x17003649 RID: 13897
		// (get) Token: 0x0600BFF1 RID: 49137 RVA: 0x00206941 File Offset: 0x00204B41
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<EntityMotion> EntityMotionList
		{
			get
			{
				return this.entityMotionList_;
			}
		}

		// Token: 0x1700364A RID: 13898
		// (get) Token: 0x0600BFF2 RID: 49138 RVA: 0x00206949 File Offset: 0x00204B49
		// (set) Token: 0x0600BFF3 RID: 49139 RVA: 0x00206951 File Offset: 0x00204B51
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700364B RID: 13899
		// (get) Token: 0x0600BFF4 RID: 49140 RVA: 0x0020695A File Offset: 0x00204B5A
		// (set) Token: 0x0600BFF5 RID: 49141 RVA: 0x00206962 File Offset: 0x00204B62
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientDownloadData DownloadData
		{
			get
			{
				return this.downloadData_;
			}
			set
			{
				this.downloadData_ = value;
			}
		}

		// Token: 0x0600BFF6 RID: 49142 RVA: 0x0020696B File Offset: 0x00204B6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneEntityMoveScRsp);
		}

		// Token: 0x0600BFF7 RID: 49143 RVA: 0x0020697C File Offset: 0x00204B7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneEntityMoveScRsp other)
		{
			return other != null && (other == this || (this.entityMotionList_.Equals(other.entityMotionList_) && this.Retcode == other.Retcode && object.Equals(this.DownloadData, other.DownloadData) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BFF8 RID: 49144 RVA: 0x002069E0 File Offset: 0x00204BE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.entityMotionList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.downloadData_ != null)
			{
				num ^= this.DownloadData.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BFF9 RID: 49145 RVA: 0x00206A43 File Offset: 0x00204C43
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BFFA RID: 49146 RVA: 0x00206A4B File Offset: 0x00204C4B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BFFB RID: 49147 RVA: 0x00206A54 File Offset: 0x00204C54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.entityMotionList_.WriteTo(ref output, SceneEntityMoveScRsp._repeated_entityMotionList_codec);
			if (this.downloadData_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.DownloadData);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BFFC RID: 49148 RVA: 0x00206AC0 File Offset: 0x00204CC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.entityMotionList_.CalculateSize(SceneEntityMoveScRsp._repeated_entityMotionList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.downloadData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.DownloadData);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BFFD RID: 49149 RVA: 0x00206B2C File Offset: 0x00204D2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneEntityMoveScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.entityMotionList_.Add(other.entityMotionList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.downloadData_ != null)
			{
				if (this.downloadData_ == null)
				{
					this.DownloadData = new ClientDownloadData();
				}
				this.DownloadData.MergeFrom(other.DownloadData);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BFFE RID: 49150 RVA: 0x00206BA5 File Offset: 0x00204DA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BFFF RID: 49151 RVA: 0x00206BB0 File Offset: 0x00204DB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 18U)
				{
					if (num != 82U)
					{
						if (num != 112U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						if (this.downloadData_ == null)
						{
							this.DownloadData = new ClientDownloadData();
						}
						input.ReadMessage(this.DownloadData);
					}
				}
				else
				{
					this.entityMotionList_.AddEntriesFrom(ref input, SceneEntityMoveScRsp._repeated_entityMotionList_codec);
				}
			}
		}

		// Token: 0x04004D5A RID: 19802
		private static readonly MessageParser<SceneEntityMoveScRsp> _parser = new MessageParser<SceneEntityMoveScRsp>(() => new SceneEntityMoveScRsp());

		// Token: 0x04004D5B RID: 19803
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004D5C RID: 19804
		public const int EntityMotionListFieldNumber = 2;

		// Token: 0x04004D5D RID: 19805
		private static readonly FieldCodec<EntityMotion> _repeated_entityMotionList_codec = FieldCodec.ForMessage<EntityMotion>(18U, EntityMotion.Parser);

		// Token: 0x04004D5E RID: 19806
		private readonly RepeatedField<EntityMotion> entityMotionList_ = new RepeatedField<EntityMotion>();

		// Token: 0x04004D5F RID: 19807
		public const int RetcodeFieldNumber = 14;

		// Token: 0x04004D60 RID: 19808
		private uint retcode_;

		// Token: 0x04004D61 RID: 19809
		public const int DownloadDataFieldNumber = 10;

		// Token: 0x04004D62 RID: 19810
		private ClientDownloadData downloadData_;
	}
}
